package com.ccys.cms.service.healthScreening.impl;


import com.ccys.cms.service.healthScreening.TblPatientBiometricsDataWebService;
import com.ccys.common.vo.ResponseResult;
import com.ccys.db.dto.healthScreening.TblPatientBiometricsDataDTO;
import com.ccys.db.entity.TblPatientBiometricsData;
import com.ccys.db.mapper.TblPatientBiometricsDataMapper;
import com.ccys.db.page.PageUtils;
import com.ccys.db.rely.service.impl.BaseServiceImpl;
import com.ccys.db.vo.healthScreening.TblPatientBiometricsDataWebVO;

import com.github.pagehelper.PageInfo;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;


/**
 * tbl_patient_biometrics_data管理
 */
@Service
@Slf4j
public class TblPatientBiometricsDataWebServiceImpl extends BaseServiceImpl<TblPatientBiometricsData> implements TblPatientBiometricsDataWebService {

    @Autowired(required = false)
    private TblPatientBiometricsDataMapper tblPatientBiometricsDataMapper;

    @Override
    public ResponseResult listObjectsCms(HttpServletRequest request, HttpServletResponse response, TblPatientBiometricsDataDTO dto) {
        PageUtils.startPage(request);
        List<TblPatientBiometricsDataWebVO> list = this.tblPatientBiometricsDataMapper.listObjectsCms(dto);
        PageInfo pageInfo = new PageInfo<>(list);
        return ResponseResult.success(pageInfo);
    }




}